function doPrint()
{
  PrintUtils.print();
}

function doPrintPreview()
{
  PrintUtils.printPreview();
}

function loadNoteToPrint()
{
  var s=readRawThunderNoteFile(_ThunderNotePrintTemplate);
	var thePrintFrame = window.frames[0];
	var doc = thePrintFrame.document;
	
	s=s.replace('{title}',opener.getPrintTitle());
  s=s.replace('{body}',opener.getPrintBody());
	s=s.replace('{createdate}',opener.getPrintCreateDate());
	s=s.replace('{moddate}',opener.getPrintModDate());
	s=s.replace('{notekey}',opener.getPrintKey());
	s=s.replace('{catkey}',opener.getPrintCatKey());
	s=s.replace('{searchterms}',opener.getPrintSearchTerms());

	doc.open();
	doc.writeln(s);
	doc.close();
}